feat(server): infer commit and PR title style from repo history#1112
feat(server): infer commit and PR title style from repo history#1112binbandit wants to merge 5 commits intopingdotgg:mainfrom
Conversation
- add recent commit subject and PR title discovery for repo style guidance - default generated commit and PR titles to conventional commits when history is unavailable - cover the new prompt guidance and git/github lookups with tests
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
UtkarshUsername
left a comment
There was a problem hiding this comment.
I think it should be fork-aware, and check the titles of PRs made to the original repo
| ), | ||
| Effect.map((pullRequests) => pullRequests.map(normalizePullRequestSummary)), | ||
| ), | ||
| listRecentPullRequestTitles: (input) => |
There was a problem hiding this comment.
listRecentPullRequestTitles() uses gh pr list against the current checkout repo, right? So in a fork clone it gets PR titles from the fork, not the upstream repo
I agree, but there is a different PR for that. Ill do it as part of that |
|
on this, it might be worth checking if the user has already had other prs / commtits and hand the agent that to write on the same style? as an example i often like to write my prs without the cringy summary ask template and just say what i changed and stuff. would love to know what other people think |
Summary
Testing
Note
Infer commit and PR title style from repo history in Codex text generation
CodexTextGenerationnow reads recent commit subjects viaGitCore.readRecentCommitSubjectsand recent PR titles viaGitHubCli.listRecentPullRequestTitlesbefore generating commit messages or PR content.serverLayerswiresGitCoreLiveandGitHubCliLiveintoCodexTextGenerationLiveto satisfy the new dependencies at runtime.Macroscope summarized 2ae0665.